import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import(/* webpackChunkName: "about" */ '../views/Home.vue')
  },
  {
    path: '/computedAndWatch',
    name: 'computedAndWatch',
    component: () => import(/* webpackChunkName: "computedAndWatch" */ '../views/examples/computedAndWatch.vue')
  },
  {
    path: '/reactive',
    name: 'reactive',
    component: () => import(/* webpackChunkName: "reactive" */ '../views/examples/reactive.vue')
  },
  {
    path: '/ComponentDemo',
    name: 'ComponentDemo',
    component: () => import(/* webpackChunkName: "ComponentDemo" */ '../views/examples/ComponentDemo.vue')
  },
  {
    path: '/lifecyle',
    name: 'lifecyle',
    component: () => import(/* webpackChunkName: "lifecyle" */ '../views/examples/lifecyle.vue')
  },
  {
    path: '/slots',
    name: 'slots',
    component: () => import(/* webpackChunkName: "slots" */ '../views/examples/slots.vue')
  },
  {
    path: '/mustache',
    name: 'mustache',
    component: () => import(/* webpackChunkName: "mustache" */ '../views/examples/mustache.vue')
  },
  {
    path: '/directive',
    name: 'directive',
    component: () => import(/* webpackChunkName: "directive" */ '../views/examples/directive.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
